package com.example.flying_personnel_management_system.dao;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.example.flying_personnel_management_system.pojo.Overtime;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Repository
@Mapper
public interface OvertimeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Overtime record);

    Overtime selectByPrimaryKey(Long id);


    List<JSONObject> selectAll();

    int updateByPrimaryKey(Overtime record);


    //查询shj的加班申请
    List<JSONObject> shjsele();

    //查询单个对象
    JSONObject shjd(String id);


}